<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script type="text/javascript">
	$(function(){
		$("#mpass").blur(function(){
			var password=$("#password").val();
			var mpass=$("#mpass").val();
			if(mpass==""){
				$("#tishi").html('请输入原密码！');
				$("#tishi").css({'color':'red','margin-left':'30px'});
				$("#mpass").css({'border-color':'red'});
			}else if(password!=mpass){
				$("#tishi").html('请与原密码输入一致！');
				$("#tishi").css({'color':'red','margin-left':'30px'});
				$("#mpass").css({'border-color':'red'});
			}else{
				if(password==mpass){
					$("#tishi").html('');
					$("#mpass").css({'border-color':'#2c7'});
				}
			}
			
		})
		
		
	})
</script>
</head>
<body>
<%@ include file="/HT/login_control.jsp" %>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span>修改管理员密码</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="/Vancl/updateloginpwd.shtml">
      <div class="form-group">
        <div class="label">
          <label for="sitename">管理员账号：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;" name="admin">
          <input type="hidden" name="admin" value="${login2.getUsername()}">
           <input type="hidden" name="password" value="${login2.getPassword() }" id="password">
          	${login2.getUsername()}
          	
          </label>
        </div>
      </div>      
      <div class="form-group">
        <div class="label">
          <label for="sitename">原始密码</label>
        </div>
        <div class="field">
          <input type="password" class="input w50" id="mpass" name="mpass" value="" size="50" placeholder="请输入原始密码 "  /><span id="tishi"></span>       
        </div>
      </div>      
      <div class="form-group">
        <div class="label">
          <label for="sitename">新密码</label>
        </div>
        <div class="field">
          <input type="password" class="input w50" name="newpass" size="50" placeholder="请输入新密码 " data-validate="required:请输入新密码  新密码不能小于5位" />         
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">确认密码</label>
        </div>
        <div class="field">
          <input type="password" class="input w50" name="renewpass" size="50" placeholder="请再次输入新密码 " data-validate="required:请再次输入新密码 ,repeat#newpass:两次输入的密码不一致" />          
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>   
        </div>
      </div>      
    </form>
  </div>
</div>
</body></html>